#ifndef WIDGETSYSFORM_H
#define WIDGETSYSFORM_H

#include <QWidget>
#include <QSqlDatabase>
#include <QtSql>

#include "../../dataBase/connection.h"

namespace Ui {
class WidgetSysForm;
}

class WidgetSysForm : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetSysForm(QWidget *parent = nullptr);
    ~WidgetSysForm();

    static QSqlDatabase* getConnect();

private:
    Ui::WidgetSysForm *ui;
    static QSqlDatabase* m_sqlConnect;


    void connectSql();
    void disConnectSql();

};

#endif // WIDGETSYSFORM_H
